import React, {Component} from 'react';
import {LeftOutlined} from '@ant-design/icons';
import './index.css';

class ListHeader extends Component {
    click = () =>{
        this.props.history.goBack()
    }
    render() {
        const {title} = this.props;
        return (
            <nav className={'list_header_wrapper'}>
                <div className="nav">
                    <LeftOutlined onClick={this.click}/>
                    <span>{title}</span>
                </div>
            </nav>
        );
    }
}

export default ListHeader;